package cn.zust.itcost.controller;

import cn.zust.itcost.common.R;
import cn.zust.itcost.entity.Cv;
import cn.zust.itcost.service.ICvService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author YXZhou
 * @since 2024-03-13
 */
@RestController
@RequestMapping("/cv")
public class CvController {

    //测试类
    @Autowired
    ICvService cvService;

    @GetMapping("/getcv")
    public R getCv(){
        QueryWrapper<Cv> wrapper=new QueryWrapper<>();
        List<Cv> cvs=cvService.list(wrapper);
        return R.ok(cvs);
    }

}
